package com.example.demo.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.example.demo.custom.BaseService;
import com.example.demo.entity.Insurance;
import com.example.demo.repository.InsuranceRepository;

@Service
public class InsuranceService extends BaseService<Insurance, Integer>{
	@Autowired
	private InsuranceRepository insuranceDAO;

	public Insurance findByName(String name) {
		return insuranceDAO.findByName(name);
		
	}
}
